home *** CD-ROM | disk | FTP | other *** search
- /*
-
- SecondSpin Encoder $version creator - (c) lauri.ahonen@pp.inet.fi -zuulikuuli 1999
-
- Purpose: Simply creates a C-Sourcefile called amigaversion.c which contains
- const char - variable to be included in the executable.
-
- Usage..: rx create_amigaversion.rexx PROCESSOR/K
-
- Example: rx create_amigaversion.rexx 68060FPU
-
- This file must be modified to comply with new versions of lame engine in
- order to make a SecondSpin compatible executable.
-
- Very basic, but it works.
-
- */
-
- options results
-
- parse arg processor
-
- call open file, ('version.h'), 'R'
-
- do loop=1 until eof(file)
-
- line=readln(file)
-
- if index(line,'LAME_MAJOR_VERSION')>0 then do
-
- LAMEVERSION1=substr(line,index(line,'LAME_MAJOR_VERSION')+length(LAME_MAJOR_VERSION)+1,2)
-
- end
-
- if index(line,'LAME_MINOR_VERSION')>0 then do
-
- LAMEVERSION2=substr(line,index(line,'LAME_MINOR_VERSION')+length(LAME_MINOR_VERSION)+1,2)
-
- end
-
- end
-
- call close file
-
- lameversion1=strip(lameversion1,'B',' ')
- lameversion2=strip(lameversion2,'B',' ')
-
- call open file, ('amigaversion.c'), 'W'
-
- call writeln file, '/* Secondspin encoder amiga version stuff */'
- call writeln file, ''
- call writeln file, 'const char version[] = "$VER: SecondSpin encoder 'processor' lame core v'lameversion1'.'lameversion2' " __AMIGADATE__ ;'
-
- call close file
-
-